<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:display="urn:jsptld:http://displaytag.sf.net"
xmlns:c="urn:jsptld:http://java.sun.com/jstl/core_rt"
xmlns:s="urn:jsptld:/struts-tags" >
	<jsp:directive.page contentType="text/html; charset=iso-8859-1" />  
	<jsp:include page="inc/topo.jsp" />
	

	<div id="breadcrumb">
		<s:text name="label.breadcrumb" /><!--voce esta em:-->
		<a href="listarConteudo.action"><!---->
		<s:text name="conteudo.nome" /><!---->
		</a><s:text name="breadcrumb.separador" />
		<s:text name="buscar.nome" />
		
	</div>
	
	<br/><h1><s:text name="buscar.nome" /></h1>
	<br/> 
	<s:form action="buscarAdministrativo.action" >	
		<div class="TbLEdit_row">
			<label for="sbusca">
				<s:text name="buscar.nome" />:
			</label>
			<s:textfield name="texto" id="sbusca" />
			<s:submit name="btnBuscar" value="Buscar" cssClass="chk"/>
		</div>
		<div class="TbLEdit_btns">
			<![CDATA[&nbsp;]]>
		</div>
	</s:form>
	<c:set var="pagina"><s:text name="pagina.nome" /></c:set>
	<c:set var="conteudo"><s:text name="conteudo.nome" /></c:set>
	<c:set var="itemconteudo"><s:text name="itemconteudo.nome" /></c:set>

	<s:set name="list" value="resultados" scope="request" />
	<div class="TbLEdit_Form">
	<display:table name="list" id="row" requestURI="buscarAdministrativo.action" pagesize="50">
		<display:column title="cod">
			${row.idPagina}
		</display:column>
		<display:column title="${pagina}">
			<s:url id="titPagina" action="abrirPagina.action">
			<s:param name="pagina.nuPagina">${row.idPagina}</s:param>
			</s:url>
			<s:a href="%{titPagina}">${row.noPagina}</s:a>
		</display:column>
		<display:column title="${conteudo}">
			<s:url id="itens" action="listarItensConteudo.action">
				<s:param name="sgctb_conteudo.nu_conteudo">${row.idConteudo}</s:param>
				<s:param name="conteudo.nuConteudo">${row.idConteudo}</s:param>
			</s:url>
			<s:url id="no_conteudo" action="editarConteudo.action">
				<s:param name="sgctb_conteudo.nu_conteudo">${row.idConteudo}</s:param>
				<s:param name="conteudo.nuConteudo">${row.idConteudo}</s:param>
			</s:url>
			<s:a href="%{itens}">Itens</s:a> | 
			<s:a href="%{no_conteudo}">${row.noConteudo}</s:a>
			
			
		</display:column>	
		<display:column title="${itemconteudo}">
			<s:url id="no_item_de_conteudo" action="editarItemConteudo.action">
				<s:param name="sgctb_conteudo.nu_conteudo">${row.idConteudo}</s:param>
				<s:param name="nu_conteudo">${row.idConteudo}</s:param>
				<s:param name="nu_item_conteudo">${row.idItemDeConteudo}</s:param>
				<s:param name="itemConteudo.nuItemConteudo">${row.idItemDeConteudo}</s:param>
				<s:param name="conteudo.nuConteudo">${row.idConteudo}</s:param>
			</s:url>
			<s:a href="%{no_item_de_conteudo}">${row.noItemDeConteudo}</s:a>
		</display:column>	
		<display:setProperty name="paging.banner.item_name">
				<s:text name="itens" />
			</display:setProperty>
    		<display:setProperty name="paging.banner.items_name">
    			<s:text name="itens" />
    		</display:setProperty>
			<display:setProperty name="paging.banner.one_item_found">
		      <![CDATA[
		        <span class="pagebanner">Apenas 1 {0} encontrado</span>
		      ]]>
		    </display:setProperty>
			<display:setProperty name="paging.banner.some_items_found">
		      <![CDATA[
		        <span class="pagebanner">{0} {1} encontrados, mostrando {2} at&eacute; {3}</span>
		      ]]>
		    </display:setProperty>
		    <display:setProperty name="paging.banner.all_items_found">
		    	<![CDATA[
		    		<span class\="pagebanner">{0} {1} encontrados, mostrando todos {2}.</span>
		    	]]> 
		    </display:setProperty>
		    <display:setProperty name="paging.banner.full">
		      <![CDATA[
				<span class="pagelinks">
		        [<a href="{1}">Primeira</a>/<a href="{2}">Anterior</a>]
		        {0}
		        [<a href="{3}">Pr&oacute;xima</a>/<a href="{4}">&Uacute;ltima</a>]
		        </span>
		      ]]>
		    </display:setProperty>
	
	
	</display:table> 
	</div> 
	
	
	
	<jsp:include page="inc/final.jsp" />

</jsp:root> 